#!/bin/bash
#set -e
#by marihome 
int=1
num=5

while(( $int<=$num ))
do
id=`cat /proc/sys/kernel/random/uuid | awk -F- '{print $1}'`
lxc stop zkt$int
lxc config set zkt$int -- raw.qemu "-smbios type=1,serial=$id"
lxc config show zkt$int
lxc start zkt$int
sleep 2
    let "int++"
done

#bash << (curl https://gitee.com/hooksnake/zkt/raw/master/id.sh)
#bash <(curl -L https://gitee.com/hooksnake/zkt/raw/master/id.sh)
#curl -fsSL https://gitee.com/hooksnake/zkt/raw/master/id.sh | bash